package com.example.shop.goods.enums;

public enum GoodsRangeFieldType {
    /**
     * 范围字段
     * {@link com.example.shop.pojo.GoodsClass 的classPrice字段对应的数据库字段class_price}
     * {@link com.example.shop.goods.dto.GoodsDetailBrowseInfo 的goodsStyleList里的classPrice}
     */
    PRICE("class_price","goodsStyleList.classPrice");
    private String dbField;
    private String esField;
    GoodsRangeFieldType(String dbField,String esField){
        this.dbField = dbField;
        this.esField = esField;

    }

    public String getDbField() {
        return dbField;
    }

    public String getEsField() {
        return esField;
    }
}
